using UnityEngine;

/// <summary>
/// 土豆地雷技能数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/SkillData/Plants/PotatoMineSkillData")]
public class PotatoMineSkillData : SkillData
{
    [Header("地雷属性")]
    [Tooltip("爆炸伤害值")]
    public long ExplosionDamage = 1800;
    
    [Tooltip("触发范围（半径）")]
    public float TriggerRange = 0.5f;
    
    [Tooltip("是否一次性使用")]
    public bool IsOneTimeUse = true;
    
    [Tooltip("激活准备时间（秒）")]
    public float ArmTime = 15f;
    
    [Tooltip("是否埋在地下")]
    public bool IsUnderground = true;
    
    [Tooltip("爆炸范围（半径）")]
    public float ExplosionRadius = 1.0f;

    private void OnEnable()
    {
        // 土豆地雷不需要目标，是被动触发的
        RequiresTarget = false;
        // 确保攻击类型为 PotatoMine
        Type = AttackType.PotatoMine;
    }
}

